﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OneRed.Draw
{
    public class Params : INotifyPropertyChanged
    {
        //吸引力
        private double atract;
        public double Atract
        {
            get
            {
                return atract;
            }
            set
            {
                atract = value;
                OnPropertyChanged("Atract");
            }
        }
        private double repuse;
        public double Repuse
        {
            get
            {
                return repuse;
            }
            set
            {
                repuse = value;
                OnPropertyChanged("Repuse");
            }
        }



        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler handler = this.PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
